<?php

require_once("dictionary.php");

class tovar extends dictionary {
	
	function __construct() {
		parent::__construct();
		$this->id = "uuid1815ecd6cd133026ce44c905ee5a70f6";
		$field = new field();
		$field->name = "priceP";
		$field->beforechange = '$priceR->value = $value * 1.25;';
		$this->addfield($field);
		$field = new field();
		$field->name = "priceR";
		//$field->beforechange = '$value = $value - 1;';
		$this->addfield($field);
	}
}

/*
class Sotrud extends dictionary {
	
	function __construct() {
		parent::__construct();
		$this->id = "uuid1815ecd6cd1330245e44c905ee5a70f6";
		$field = new field();
		$field->name = "surname";
		$this->fields[] = $field;
		$field = new field();
		$field->name = "bithday";
		$this->fields[] = $field;
		
		$tabular = new tabular();
		$tabular->name = "semia";
		$tabular->id = "uuid1813ecd6cd133026ce44c905ee5a70f6";
		$field = new field();
		$field->name = "named";
		$tabular->fields[] = $field;
		$field = new field();
		$field->name = "surname";
		$field->onchange = '$this->named = $this->surname ." ". $this->forfather;';
		$tabular->fields[] = $field;
		$field = new field();
		$field->name = "forfather";
		$field->onchange = '$this->named = $this->surname ." ". $this->forfather;';
		$tabular->fields[] = $field;
		$this->tabulars[] = $tabular;
	}
}
*/

?>
